<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h"%>
<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
<%@ taglib uri="http://myfaces.apache.org/tomahawk" prefix="t"%>

<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
pageEncoding="ISO-8859-1"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<f:view>
	<html>
	<head>
	<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
	<title>Password Recovery</title>
	<link rel="shortcut icon" href="images/idenewlogo.png">
	</head>
	<body>
		<h:form id="passwordId">
			<div align="center">
				<h:messages style="color:red"/>
				<h:panelGrid columns="2" cellpadding="2" cellspacing="2" border="3" style="align:center;background:silver;">
				
					<h:outputLabel>User Name</h:outputLabel>
					<h:inputText value="#{forgetPassword.givenUserName}" id="givenUserNameId" />
					
					<h:outputLabel>Hint Question</h:outputLabel>
					<h:selectOneMenu value="#{forgetPassword.hintQuestion}" required="true" id="hintQuestionId">
						<f:selectItem itemValue="What is your pet Name" itemLabel="What is your pet Name?"/>
						<f:selectItem itemValue="What is your favourite color" itemLabel="What is your favourite color?"/>
						<f:selectItem itemValue="What is your teacher Name" itemLabel="What is your teacher Name?"/>
						<f:selectItem itemValue="What is your Favourite Car" itemLabel="What is your Favourite Car?"/>
					</h:selectOneMenu>
					
					<h:outputLabel>Hint Answer</h:outputLabel>
					<h:inputText value="#{forgetPassword.hintAnswer}" id="hintAnswerId"/>
					
					<h:outputLabel></h:outputLabel>
					<h:commandButton label="GetPassword" action="#{forgetPassword.recoverPassword}" value="GetPassword" id="recoverPasswordId"/>
					
					<h:outputLabel></h:outputLabel>
					<h:outputLabel></h:outputLabel>
					
					<h:outputLabel></h:outputLabel>
					<h:commandLink action="#{forgetPassword.loginPage}" value="GoToLoginPage" id="loginPageId"/>
					
			</h:panelGrid>
			</div>
		</h:form>
		<p align="center">
	</p></body>
	</html>
</f:view>